public class User {
    private String name;
    private String age;

    public String getName() {
        return name;
    }
    User(){
        System.out.println("无参构造被调用");
    }
    User(String name){
        this.name=name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "user{" +
                "name='" + name + '\'' +
                '}';
    }

    public void setAge(String age) {
        this.age = age;
    }

    public String getAge() {
        return age;
    }
}
